package com.example.cafe.work.mapper;

import com.example.cafe.work.dto.TicketDTO;
import com.example.cafe.work.model.Ticket;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hua
 * @since 2024-09-16
 */
public interface TicketMapper extends BaseMapper<Ticket> {

    int add(@Param("Ticket") Ticket ticket);

    List<TicketDTO> selectAll();
}

